package com.sun.spring5.annotations;

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

@Configuration
public class MyConfig3 {

    @Bean("car")
    public Car car(){
        System.out.println("容器装配完成");
        return new Car();
    }
}
